<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>文字垂直水平居中</title>
    <style>
      html,
      body {
        height: 100%;
        margin: 0;
        padding: 0;
      }
      .wrap {
        height: 100%;
        text-align: center;
      }
    </style>
  </head>
  <body>
    <div class="wrap"><span>好后</span></div>
  </body>
</html>
